/**
 * @module common/constant
 * @author ashen
 */
export default {
  /**
   * @constant
   * @type {object}
   * @default
   */
  pager: {
    page: 1, //当前页
    limit: 5 //每页多少条
  },
  //ajaxUrl: 'http://192.168.12.59:9092/lb/',
  /**
   * @function
   * @return {object} ajaxUrl
   */
  ajaxUrl () {
    if (process.environment === 'dc') {
      return 'http://localhost:8080/lb/';
    } else {
      //return 'https://192.168.12.73:6070/lb/';
      return 'https://lbyfb.wuuxiang.com:9770/lb/';
    }
  },
  phoneInfo: {},
  /**
   * @constant
   * @type {array}
   * @default
   */
  yearsArray: [
    {text: '2015年', value: 2015},
    {text: '2016年', value: 2016},
    {text: '2017年', value: 2017},
    {text: '2018年', value: 2018},
    {text: '2019年', value: 2019},
    {text: '2016年', value: 2020},
    {text: '2017年', value: 2021},
    {text: '2018年', value: 2022},
    {text: '2019年', value: 2023},
    {text: '2020年', value: 2020}
  ],
  /**
   * @constant
   * @type {object}
   * @description 路由权限匹配
   * @default
   */
  routesMap: [
    {name: 'membersShip', component: resolve => require(['@/components/member/membersShip'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'analysis', component: resolve => require(['@/components/personal/analysis'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'simAccountTool', component: resolve => require(['@/components/account/accountTools/simAccountTool'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'proAccountTool', component: resolve => require(['@/components/account/accountTools/proAccountTool'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'accountSet', component: resolve => require(['@/components/account/accountSet/accountSet'], resolve), requiresAuth: 1},
    {name: 'accountMethod', component: resolve => require(['@/components/account/accountSet/accountMethod'], resolve), requiresAuth: 1},
    {name: 'bizAnalysis', component: resolve => require(['@/components/home/businessAnalysis/bsAnalysis'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'businessForecast', component: resolve => require(['@/components/home/businessAnalysis/bsAnalysis'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'passenger', component: resolve => require(['@/components/home/passenger/passenger'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'dishAnalysis', component: resolve => require(['@/components/home/dishAnalysis/dishAnalysis'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'financial', component: resolve => require(['@/components/home/financial/financial'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'financialAnalysis', component: resolve => require(['@/components/home/financial/financial'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'employe', component: resolve => require(['@/components/home/employees/employe'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'bestEmpList', component: resolve => require(['@/components/home/employees/bestEmpList'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'storeDatas', component: resolve => require(['@/components/home/storeCondition/storeDatas'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'takeBusiness', component: resolve => require(['@/components/home/takeOut/takeBusiness'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'riskAudit', component: resolve => require(['@/components/home/riskAudit/riskAudit'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'objective', component: resolve => require(['@/components/objective/objective'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'targetManagement', component: resolve => require(['@/components/objective/objective'], resolve), requiresAuth: 1, keepAlive: 1},
    {name: 'cashSituation', component: (resolve) => require(['@/components/home/cashSituation/cashSituation'], resolve)}
  ],
  /**
   * @constant
   * @type {object}
   * @description 资源权限匹配
   * @default
   */
  resourceMap: [
    {pageCode: 'R0001', pageName: '记账'},
    {pageCode: 'R0001', pageName: '最佳员工'},
    {pageCode: 'R0001', pageName: '记账提示'},
    {pageCode: 'R0001', pageName: '设置'},
    {pageCode: 'R0001', pageName: '门店排行榜'}
  ]
};
